package com.Teacher.controller;

import com.Teacher.model.StudentInfo;
import com.Teacher.model.TeacherInfo;
import com.Teacher.service.OpenFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-07-22
 * Time:17:46
 * Text：
 */
@RestController
public class OpenfeignController {
    @Autowired
    OpenFeignService openFeignService;

    @RequestMapping("/{classroom}")
    public TeacherInfo getId(@PathVariable String classroom){
        return  openFeignService.getId(classroom);
    }

}
